package yxy.cherry.battle.module.selector;

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.Team;
import yxy.cherry.battle.module.Position;

import java.util.Set;

@TargetSelectorType(Type = 34)
public class TargetSelector_34_中行 extends TargetSelector {

	@Override
	public Set<Fighter> target(Fighter actor, Team team, int param1, int param2) {
		Set<Fighter> set = getLine(Position.FM, team);
		if (set == null) {
			set = getLine(Position.FU, team);
		}
		if (set == null) {
			set = getLine(Position.FD, team);
		}
		return randomTarget(set, param1, param2);
	}

}